package edu.langnan.xiaoli.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import edu.langnan.xiaoli.constant.XiaoLiConstants;
import edu.langnan.xiaoli.core.domain.RoleDO;
import edu.langnan.xiaoli.mapper.RoleMapper;
import edu.langnan.xiaoli.service.RoleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cql
 */
@Service
public class RoleServiceImpl implements RoleService {

    private static final Logger log = LoggerFactory.getLogger(RoleService.class);

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<RoleDO> findRoleByUserId(Integer userId, String userType) {
        return roleMapper.findRoleByUserId(userId, userType);
    }
}
